import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'index',
  component: () => import('../views/productionGeneral/index.vue')
},
//200万
{
  path: '/socket/two_million',
  name: 'TwoMillion',
  component: () => import('../views/TwoMillionWorkshops/TwoMillionWorkshops.vue')
},
//300万
{
  path: '/socket/three_million',
  name: 'ThreeMillion',
  component: () => import('../views/ThreeMillionWorkshops/ThreeMillionWorkshops.vue')
},
//浮选
{
  path: '/socket/flotation_data',
  name: 'ThreeMillion',
  component: () => import('../views/Flotation/index.vue')
},
//皮带秤
{
  path: '/socket/pdc_data',
  name: 'Pdc',
  component: () => import('../views/Pdc/index.vue')
},
//密控
{
  path: '/socket/density_data',
  name: 'DensityControl',
  component: () => import('../views/DensityControl/index.vue')
},
//设备台账
{
  path: '/Equipment/EquipmentLedger',
  name: 'EquipmentLedger',
  component: () => import('../views/Equipment/EquipmentLedger/index.vue')
},
//设备检修
{
  path: '/Equipment/EquipmentMaintenance',
  name: 'EquipmentMaintenance',
  component: () => import('../views/Equipment/EquipmentMaintenance/index.vue')
},
//设备巡检
{
  path: '/Equipment/EquipmentInspection',
  name: 'EquipmentMaintenance',
  component: () => import('../views/Equipment/EquipmentInspection/index.vue')
},
//调度台账 
{
  path: '/Product/SchedulingParameter',
  name: 'SchedulingParameter',
  component: () => import('../views/ProductionAndMaterial/SchedulingParameter/index.vue'),
},
//库存信息 
{
  path: '/Product/InventoryInformation',
  name: 'InventoryInformation',
  component: () => import('../views/ProductionAndMaterial/InventoryInformation/index.vue'),
},
//出/入库
{
  path: '/Product/OutboundInventory',
  name: 'OutboundInventory',
  component: () => import('../views/ProductionAndMaterial/OutboundInventory/index.vue'),
},
//盘库记录 
{
  path: '/Product/InventoryRecord',
  name: 'InventoryRecord',
  component: () => import('../views/ProductionAndMaterial/InventoryRecord/index.vue'),
},
//用水数据
{
  path: '/Energy/WaterData',
  name: 'WaterData',
  component: () => import('../views/EnergyManagement/WaterData/index.vue'),
},
//电力消耗 
{
  path: '/Energy/ElectricityData',
  name: 'ElectricityData',
  component: () => import('../views/EnergyManagement/ElectricityData/index.vue'),
},
//介质消耗
{
  path: '/Energy/MediumData',
  name: 'MediumData',
  component: () => import('../views/EnergyManagement/MediumData/index.vue'),
},
//浮选药剂
{
  path: '/Energy/FlotationReagents',
  name: 'FlotationReagents',
  component: () => import('../views/EnergyManagement/FlotationReagents/index.vue'),
},
//煤质化验
{
  path: '/Coal/CoalQuality',
  name: 'CoalQuality',
  component: () => import('../views/CoalQuality/index.vue'),
}]
const router = new VueRouter({
  mode: "hash",
  routes
})

export default router